-- GENERATED SPELL FOR [Mechanar Crusher] --


function spell0_19231(pUnit, Event) --@The Claw,n/a--
pUnit:FullCastSpellOnTarget(35055,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19231', 6320, 1)
end

function Sorts_19231(pUnit, Event)
local choix_sorts_19231 = math.random(0, 0)
if choix_sorts_19231 == 0 then
pUnit:RegisterEvent('spell0_19231', 1, 1)
end
end

function mob19231_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19231', math.random(1500, 3000), 1)
end

function mob19231_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19231_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19231_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19231, 1, 'mob19231_Action')
RegisterUnitEvent(19231, 2, 'mob19231_Leave')
RegisterUnitEvent(19231, 3, 'mob19231_Kill')
RegisterUnitEvent(19231, 4, 'mob19231_Die')
